import request from '@/utils/request'

// 查询门禁状态管理列表
export function listCommunityDoor(query) {
  return request({
    url: '/system/communityDoor/list',
    method: 'get',
    params: query
  })
}

// 查询门禁状态管理详细
export function getCommunityDoor(id) {
  return request({
    url: '/system/communityDoor/' + id,
    method: 'get'
  })
}

// 新增门禁状态管理
export function addCommunityDoor(data) {
  return request({
    url: '/system/communityDoor',
    method: 'post',
    data: data
  })
}

// 修改门禁状态管理
export function updateCommunityDoor(data) {
  return request({
    url: '/system/communityDoor',
    method: 'put',
    data: data
  })
}

// 删除门禁状态管理
export function delCommunityDoor(id) {
  return request({
    url: '/system/communityDoor/' + id,
    method: 'delete'
  })
}

// 导出门禁状态管理
export function exportCommunityDoor(query) {
  return request({
    url: '/system/communityDoor/export',
    method: 'get',
    params: query
  })
}
